home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / bcsrce2.zip / BATINDEX.SIN < prev    next >
Text File  |  1990-10-17  |  7KB  |  92 lines

  1. ABS(solute) [Let %!a = -5; ABS %!a; If %!a = 5 Goto Branch]             Page 17
  2. ADD %!a 5 {adds 5 to variable}                                          Page 17
  3. ANSI {tells compiler to use ANSI.SYS for screen writes}                 Page 18
  4. Batcom [File.BAT] [[/A]/[/B]] [/D] [/DS] [/NL] [/Ofile.OBJ]             Page 15
  5. BEEP {sounds a short beep}                                              Page 18
  6. BIOS {tells compiler to use bios drivers for screen writes}             Page 18
  7. BOX r1 c1 r2 c2 {BOX 1 1 23 79 (a single border box)}                   Page 19
  8. CLEARBUF {clears typeahead keyboard buffer}                             Page 34
  9. CLOSE_FILE {close the READ_FILE text.fil being read}                    Page 39
  10. Compiled commands                                                       Page 14
  11. COPYD {like COPY but won't overwrite newer copy with an older one}      Page 16
  12. DAY_OF_MONTH  {where ERRORLEVEL for 1=1-31=31}                          Page 46
  13. DAY_OF_WEEK  {where ERRORLEVEL for Sun=0-Sat=6}                         Page 46
  14. DIV %!a 5 {divides variable by 5}                                       Page 15
  15. DOUBLE_BOX r1 c1 r2 c2 {DOUBLE_BOX 1 1 23 79 (a double border box)}     Page 19
  16. DO_IF  [DO_IF condition; commands; else; commands; END_IF]              Page 22
  17. DO_WHILE  [DO_WHILE condition; commands; END_WHILE]                     Page 16
  18. END_IF  [DO_IF condition; commands; else; commands; END_IF]             Page 22
  19. END_WHILE  [DO_WHILE condition; commands; END_WHILE]                    Page 17
  20. ECHO [\\#] {where # is ascii code} [\#] {this is the escape character}  Page 25
  21. ECHONOLF [\\#] {where # is ascii code} [\#] {escape character}          Page 24
  22. EMMFREE %!a  (expanded memory {stored in variable})                     Page 26
  23. EMMSTATUS {returns ERRORLEVEL where <>0 = an error or not present}      Page 26
  24. END_OF_FILE?   {returns ERRORLEVEL where <>0 = end of READ_FILE}        Page 39
  25. ERRLEVEL  {same as DOS's ERRORLEVEL but requires an exact match test}   Page 23
  26. ERROR_LEVEL %!a  {converts current ERRORLEVEL value to a variable}      Page 26
  27. EQ %1 50 {returns ERRORLEVEL where <>0 = two variable aren't equal}     Page 27
  28. EXIT [#] {cancels program, if number used passes on to ERRORLEVEL}      Page 27
  29. FILEDATE Filename.ext {returns ERRORLEVEL value}; ERROR_LEVEL %!a;      Page 28
  30.          day(mod 32); month(mod 512; div 32); yr(div 512; add 1980)
  31. FILESIZE %!a {converts filespec %!a to total of bytes in files}         Page 29
  32. FILETIME Filename.ext {returns ERRORLEVEL value}; ERROR_LEVEL %!a;      Page 28
  33.          hr(div 2048); min(mod 2048; div 32); sec(mod 32; mul 2)
  34. FIND_STRING {Let %!s = text; FIND_STRING %!s ex; (%!a now = 2)}         Page 30
  35. FREEDISK %!a {converts drivespec %!a to total of bytes left on drive}   Page 30
  36. FREEMEM %!a {places current free memory total into variable %!a}        Page 31
  37. FORMFEED  {sends ASCII 12 (page eject) to PRN}                          Page 31
  38. GE %1 50 {returns ERRORLEVEL where <>0 =two variable aren't Grt Than=2} Page 27
  39. GETDIR %!a {places current directory string into variable %!a}          Page 31
  40. GETDRIVE %!a {places current drive string into variable %!a}            Page 31
  41. GETKEY {see KEYVAL (p. 72) table p. 74 for ERRORLEVEL returned}         Page 32
  42. GOSUB [Labelname] {branches to label which must contain a RETURN}       Page 32
  43. GOSUB_PARAMETER %!a {places GOSUB parameter into variable %!a}          Page 33
  44. GT %1 50 {returns ERRORLEVEL where <>0 =two variable aren't Grt Than}   Page 27
  45. HOUR_HOUR  {where ERRORLEVEL is returned of 0-23 for 24hr clock}        Page 29
  46. IF [not] par1 = par2 [branch] {case insensitive IF test}                Page 34
  47. IF [not] par1 == par2 [branch] {case sensitive IF test}                 Page 34
  48. IF TRUE [Command] {same as IF ERRORLEVEL = 1}                           Page 34
  49. IF FALSE [Command] {same as IF NOT ERRORLEVEL = 1}                      Page 34
  50. KEYBUF text\#text\# {where #=ascii number} (typeahead keyboard buffer)  Page 34
  51. KEYPRESSED {returns ERRORLEVEL where <>0 = a key hasn't been pressed}   Page 24
  52. KEYVAL {returns GETKEY's ERRORLEVEL at prompted key press} .EXE progrm  Page 72
  53. LABEL [labelname] {same as :labelname}                                  Page 36
  54. LE %1 50 {returns ERRORLEVEL where <>0=two variable aren't Less Than=2} Page 27
  55. LOCATE #r #c {where #r = row 1-25, #c = column 1-80} (Locate 10 15)     Page 36
  56. LOWER %!a  {converts all text in %!a to lower case}                     Page 45
  57. LT %1 50 {returns ERRORLEVEL where <>0=two variable aren't Less Than}   Page 27
  58. LTRIM %!a {transfomrs %!a to string without leading spaces}             Page 36
  59. MINUTE_MINUTE  {where ERRORLEVEL 0-59 returned for current minute}*     Page 46
  60. MOD %!a 5 {divides variable by 5 returning modulus (remainder)}         Page 27
  61. MONTH_MONTH  {where ERRORLEVEL for Jan=1-Dec=12}                        Page 46
  62. MSC _objfile %!a [input]  {BATCOM /Oobjfile,  see manual}               Page 58
  63. MUL %!a 5 {multiplies variable by 5}                                    Page 27
  64. Nest levels for DO_IF & DO_WHILE are up to 20 deep                      Page 22
  65. PARSE %!a %!b ,.; {%!a contains 1st word %!b rest of string %!b}        Page 37
  66. PAUSE [Prompt]  [\\#] {where # is ascii code} [\#] {escape character}   Page 25
  67. PAUSENOLF [Prompt]  [\\#] {# is ascii code} [\#] {escape character}     Page 24
  68. READ %!a  {pauses and receives user's input into %!a}                   Page 37
  69. READ_FILE %!a [File.Txt] {[F.T] only at 1st} (%!a = line read of file)  Page 38
  70. READ_SCREEN %!a  {places current row of screen display into %!a}        Page 41
  71. RESTORE_SCREEN {use SAVE_SCREEN beforehand, not just for TSR's}         Page 55
  72. RTRIM %!a {transforms %!a to string without trailing spaces}            Page 41
  73. SAVE_SCREEN {use RESTORE_SCREEN afterwards, not just for TSR's}         Page 55
  74. SECONDS_SECONDS  {where ERRORLEVEL 0-59 returned for current second}    Page 46
  75. SET_BACKGROUND_COLOR # {where # = 0-15; black is 0 & 8, white is 15}    Page 41
  76. SET_COLOR # {where # is dependent on # allowed, begins with 0}          Page 42
  77. SET_VIDEO_MODE # {where # = 0-19; cga0-6\ma7\herc8\ega13-16\vga17-19}   Page 43
  78. STRING_LENGTH %!a  {converts %!a to numeric length of %!a}              Page 44
  79. SUB %!a 5 {subtract 5 from variable}                                    Page 27
  80. SUBSTRING %!a #p #l {where #p=position to start at, #l=length to pull}  Page 45
  81. TSR #1 #2 {#1=key value, #2=shift status}                               Page 50
  82. TSR_DISABLE {disables a TSR's hot-key see manual for usage}             Page 52
  83. TSR_ENABLE {enables a TSR's hot-key see manual for usage}               Page 52
  84. TSR_INSTALLED? {sets ERRORLEVEL <>0 if TSR installed, see manual}       Page 51
  85. TSR_POPUP {activates TSR without needing to use hotkey, see manual}     Page 54
  86. TSR_UNLOAD {removes TSR from memory, see manual}                        Page 53
  87. UPPER %!a  {converts all text in %!a to upper case}                     Page 45
  88. User defined variables %!a-to-%!z [Let %!a = %1]                        Page 17
  89. WAIT #  {pause display until # of seconds has passed}                   Page 46
  90. WAITKEY # {pause display until # of seconds has passed or key pressed}  Page 46
  91. YEAR_YEAR {where ERRORLEVEL = (1980-2099)}                              Page 46
  92.